package com.itcast.n3_类的加载器;

import org.apache.commons.io.FileUtils;

import java.io.IOException;

/**
 * @program: jvm
 * @description:
 * @author: flyduck
 * @create: 2024-09-03 14:11
 **/
public class Test07_使用Arthas查看类加载器加载的所有jar {
    public static void main(String[] args) throws IOException {
        //当前项目
        Student student = new Student();
        ClassLoader classLoader1 = Student.class.getClassLoader();
        System.out.println("Student类的类加载器 = " + classLoader1);

        //maven依赖中的类
        ClassLoader classLoader2 = FileUtils.class.getClassLoader();
        System.out.println("FileUtils类的类加载器 = " + classLoader2);
        System.in.read();
    }
}
